
class GameMap{
  static String map001 = "建邺";
  static String map002 = "东海湾";
  static String map003 = "沉船";

  static List<String> maps = [GameMap.map001,GameMap.map002,GameMap.map003];
}

extension StringExtend on String{
  ///当前地图是否有暗雷
  bool hasDarkEnemy() => this == GameMap.map002 || this == GameMap.map003 ;

  int level(){
    if(this == GameMap.map002){
      return 1;
    }else if(this == GameMap.map003){
      return 5;
    }else{
      return 1;
    }
  }
}